projects
/
utf8proc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a7f92d
)
sort keys to try to eliminate data dependence on Ruby version
author
Steven G. Johnson
<stevenj@alum.mit.edu>
Thu, 25 Jun 2015 23:15:57 +0000
(19:15 -0400)
committer
Steven G. Johnson
<stevenj@alum.mit.edu>
Thu, 25 Jun 2015 23:15:57 +0000
(19:15 -0400)
data/data_generator.rb
patch
|
blob
|
history
diff --git
a/data/data_generator.rb
b/data/data_generator.rb
index 3d8c3b7dece7ffa6a0f6425622e546e27aee5953..0fd25c040d0323105bc08d2eedfc14073d6171ff 100644
(file)
--- a/
data/data_generator.rb
+++ b/
data/data_generator.rb
@@
-313,8
+313,8
@@
$stdout << "};\n\n"
$stdout << "const utf8proc_int32_t utf8proc_combinations[] = {\n "
i = 0
-comb1st_indicies.keys.each_index do |a|
- comb2nd_indicies.keys.each_index do |b|
+comb1st_indicies.keys.
sort.
each_index do |a|
+ comb2nd_indicies.keys.
sort.
each_index do |b|
i += 1
if i == 8
i = 0